﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php wp_title(''); ?><?php if(wp_title(' ', false)) { echo ' | '; } ?><?php bloginfo('name'); ?><?php if (is_home() and !is_paged()) { ?>-<?php bloginfo('description'); ?><?php } ?><?php if(is_404()) { ?> / Error 404 - Not Found<?php } ?><?php if(is_search()) { ?> | Search Results: <?php echo wp_specialchars($s, 1); ?><?php } ?><?php if(is_paged() && get_query_var('paged') > 1) { ?> - 第<?php echo $paged; ?>页<?php } ?></title>
<?php if (!is_archive() & !is_search()) { ?>
<?if (is_home()){ 
    $description = "葛小飞(天真)的个人博客，探讨网站运营营销和记录个人生活，为梦想而生活，为生活而记录。";
    $keywords = "葛小飞, gexiaofei, 搜索引擎营销, 生活情趣";
} elseif (is_single()){    
    $description = substr(strip_tags($post->post_excerpt), 0, 250);
    $keywords = "";        
    $tags = wp_get_post_tags($post->ID);
    foreach ($tags as $tag ) {
        $keywords = $keywords . $tag->name . ", ";
    }
}else{
    $description     = $post->post_title;
}
?>
<meta name="description" content="<?=$description?>" />
<meta name="keywords" content="<?=$keywords?>" />
<?php } ?>
<?php 
if (is_archive()) {echo'<meta name="description" content="';wp_title('', true);echo'专题页面。" />'; }  ?>
<link rel="stylesheet" href="http://www.gexiaofei.com//wp-content/themes/xiaonei/style.css" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="Feed Gexiaofei by Feedsky" href="http://feed.feedsky.com/gexiaofei" />
<link rel="search" type="application/opensearchdescription+xml" title="<?php bloginfo('name'); ?>" href="<?php bloginfo('url'); ?>/os.xml" />
<?php wp_head(); ?>
<script src="http://www.gexiaofei.com/mint/?js" type="text/javascript"></script>
</head>
<body id="blogpage">
<div id="container">	
<div id="header">	
<div id="logo"><a href="http://www.gexiaofei.com/"><img src="<?php bloginfo ( 'template_directory' ); ?>/img/new-logo.gif" alt="gexiaofei.com(Logo)"/></a></div>
</div>
<div id="widebar">
<!--<div id="banner">
<img src="<?php bloginfo ( 'template_directory' ); ?>/promo/6582.GIF">
</div>-->
		<div id="navigation">
			<ul class="nav-left">
				<li><a rel="nofollow" href="<?php bloginfo('home'); ?>/" title="<?php bloginfo('name'); ?>" class="logo">博客</a></li>
<li><a rel="nofollow" href="http://www.gexiaofei.com/about/" title="葛小飞的个人简介" >关于</a></li>
<li><a href="http://www.gexiaofei.com/seo-service-for-enterprise/" title="SEO服务之企业营销方案">服务</a></li>
			</ul>
			<ul class="nav-right">
				<li><?php wp_loginout(); ?></li>

			</ul>
		</div>